package com.springboot.service;


import com.springboot.mapper.UserDao;
import com.springboot.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class HelloService {

    @Autowired
    private UserDao userDao;

    public User queryData(Integer id) {
        return userDao.selectByPrimaryKey(id);
    }
}
